<template>
  <div>
    <el-form-item label="自定义字段" class="tr">
      <el-switch v-model="value.__config.customCode"></el-switch>
    </el-form-item>
    <el-form-item label="字段值" class="tr" v-if="value.__config.customCode">
      <el-input
        v-model="value.__config.codeValue"
        size="small"
        placeholder="请输入"
      ></el-input>
    </el-form-item>
    <template v-if="value.__config.customCode">
      <el-form-item label="最小值">
        <el-input-number
          size="small"
          style="width: 100%"
          v-model="value.__config.min"
          controls-position="right"
          :max="value.__config.max - 1"
        ></el-input-number>
      </el-form-item>
      <el-form-item label="最大值">
        <el-input-number
          size="small"
          style="width: 100%"
          v-model="value.__config.max"
          controls-position="right"
          :min="value.__config.min + 1"
          :max="999999999999"
        ></el-input-number>
      </el-form-item>
      <el-form-item label="精度">
        <el-input-number
          size="small"
          style="width: 100%"
          v-model="value.__config.limitNumber"
          controls-position="right"
          :min="0"
          :max="6"
        ></el-input-number>
      </el-form-item>
    </template>
  </div>
</template>

<script>
import basicmixins from "../basicmixins";
export default { mixins: [basicmixins] };
</script>

<style></style>
